# -*- coding: utf-8 -*-
import os
import mysql.connector

class Config:
    HOST = "127.0.0.1"
    PORT = 5000

    BASE_DIR = os.getcwd()
    TEMPLATE_FOLDER = os.path.join(BASE_DIR, "templates")
    STATIC_FOLDER = os.path.join(BASE_DIR, "static")

    SECRET_KEY = "ssgll"

    SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://ssgll:383687@localhost:3306/logging?charset=utf8"
    SQLALCHEMY_ECHO = True
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class Development(Config):
    pass


class Production(Config):
    pass


conf = {
    "Config": Config,
    "Development": Development,
    "Production": Production,
    "Default": Config,
}